/*
* @Project_description: 模板vuex
*/
'use strict'
export default {
  namespaced: true,
  state: {
// 当前点击访问的demoId
    demoId: '',
    demoTree: [],
  },
  actions: {
    /**
     * @description 设置模板id
     * @param {Object} context
     * @param {*} info info
     */
    set({ state, dispatch }, orgId) {
// store 赋值
      state.demoId = demoId
    },
    /**
     * @description 设置模板树
     * @param {Object} context
     */
    setTree({ state, dispatch }, tree) {
// store 赋值
      state.demoTree = tree
    },
    /**
     * @description 获取模板id
     * @param {Object} context
     */
    get({ state, dispatch }) {
// store 赋值
      return state.demoId
    },
    /**
     * @description 获取模板树
     * @param {Object} context
     */
    getTree({ state, dispatch }) {
// store 赋值
      return state.demoTree
    },
  },
}
